package com.js.mapper.bot;

import com.js.domian.entity.bot.WebsocketEntity;
import com.js.domian.vo.bot.WebsocketVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface WebsocketMapper {
    List<WebsocketEntity> getWebsocketList(WebsocketVo vo);

    WebsocketEntity getWebsocket(@Param("id") Integer id);

    WebsocketEntity getWebsocketByUrl(@Param("url") String url);

    void addWebsocket(WebsocketEntity entity);

    void updateWebsocket(WebsocketEntity entity);

    void deleteWebsocket(@Param("id") Integer id);
}
